﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SynoManager.DownloadStation
{
    public delegate void DownloadTaskEventHandler(object sender, DownloadTaskEventArgs e);
    public delegate void DownloadTaskStatusEventHandler(object sender, DownloadTaskStatusEventArgs e);

    public class DownloadTaskEventArgs : EventArgs
    {
        DownloadTask task;

        public DownloadTaskEventArgs(DownloadTask task)
        {
            this.task = task;
        }

        public DownloadTask Task
        {
            get { return task; }
        }
    }

    public class DownloadTaskStatusEventArgs : DownloadTaskEventArgs
    {
        DownloadState status;

        public DownloadTaskStatusEventArgs(DownloadTask task, DownloadState status)
            : base(task)
        {
            this.status = status;
        }

        public DownloadState Status
        {
            get { return status; }
        }
    }
}
